package com.app.micaihu.bean.game;

import android.text.TextUtils;

import com.app.micaihu.bean.news.ShareBean;
import com.app.micaihu.custom.components.downandupload.DownloadUtils;
import com.app.utils.util.StringUtils;

import java.util.List;

/**
 * Created by Guo on 2017/2/9.
 * <p>
 * 游戏视频详情
 */

public class GameContent extends ShareBean implements IDownload {
    //    private String articleId;
    private String articleTime;
    private String articleTitle;
    private String articleType;
    private String downloadNum;//下载量
    private String packageName;//包名
    private String playTime;//视频播放时长
    private String appIcon;//缩略图icon
    private String appName;//
    private String plotImg;//视频封面图
    private String videoContent;//视频正文

    private String videoCurl;//云视频地址

    private String videoUrl;//视频外链地址

    private String downloadUrl;//游戏下载地址


    //游戏详情  210版本新增字段
    private String appSize;//游戏包大小
    private String gradeScore;//游戏评分
    private String perStartNum;//评价总人数
    private String updateTime;//更新时间
    private String latestStar;//最近的评星数
    private String appType;//游戏类型,如动作
    private String sourceType;//来源类型,如编辑推荐
    private String sourceDesc;//编辑推荐的话 例如 虎哥推荐

    private String tag;//请求的tag

    private String editRecommend;//编辑推介

    private String articleSummary;//游戏简介

    private List<GameRaidersEntity> strategyList;//相关游戏攻略
    private List<GameRelated> relatedGame;//相关游戏

    private String slogan;


    //2.2
    private String showStrategyMore;//是否显示更多攻略的按钮 1是 / 0 否
    private String gameType;
    private String sourceQQ;
    private int status;//4的时候 已下架

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getSourceQQ() {
        return sourceQQ;
    }

    public void setSourceQQ(String sourceQQ) {
        this.sourceQQ = sourceQQ;
    }

    public String getGameType() {
        return gameType;
    }

    public void setGameType(String gameType) {
        this.gameType = gameType;
    }

    public boolean getShowStrategyMore() {
        return TextUtils.equals(showStrategyMore, "1");
    }

    public void setShowStrategyMore(String showStrategyMore) {
        this.showStrategyMore = showStrategyMore;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public String getSourceDesc() {
        return sourceDesc;
    }

    public void setSourceDesc(String sourceDesc) {
        this.sourceDesc = sourceDesc;
    }

    public String getArticleSummary() {
        return articleSummary;
    }

    public void setArticleSummary(String articleSummary) {
        this.articleSummary = articleSummary;
    }

    public List<GameRelated> getRelatedGame() {
        return relatedGame;
    }

    public void setRelatedGame(List<GameRelated> relatedGame) {
        this.relatedGame = relatedGame;
    }

    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }


    public String getAppSize() {
        return appSize;
    }

    public void setAppSize(String appSize) {
        this.appSize = appSize;
    }

    public String getGradeScore() {
        return gradeScore;
    }

    public void setGradeScore(String gradeScore) {
        this.gradeScore = gradeScore;
    }

    public String getPerStartNum() {
        return perStartNum;
    }

    public void setPerStartNum(String perStartNum) {
        this.perStartNum = perStartNum;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getLatestStar() {
        return latestStar;
    }

    public void setLatestStar(String latestStar) {
        this.latestStar = latestStar;
    }

    public String getEditRecommend() {
        return editRecommend;
    }

    public void setEditRecommend(String editRecommend) {
        this.editRecommend = editRecommend;
    }

    public List<GameRaidersEntity> getStrategyList() {
        return strategyList;
    }

    public void setStrategyList(List<GameRaidersEntity> strategyList) {
        this.strategyList = strategyList;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getAppIcon() {
        return appIcon;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

//    public String getArticleId() {
//        return articleId;
//    }
//
//    public void setArticleId(String articleId) {
//        this.articleId = articleId;
//    }

    public String getArticleTime() {
        return articleTime;
    }

    public void setArticleTime(String articleTime) {
        this.articleTime = articleTime;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType;
    }

    public String getDownloadNum() {
        return TextUtils.isEmpty(downloadNum) ? "0" : downloadNum;
    }

    public void setDownloadNum(String downloadNum) {
        this.downloadNum = downloadNum;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getPlayTime() {
        return playTime;
    }

    public void setPlayTime(String playTime) {
        this.playTime = playTime;
    }


    public void setAppIcon(String appIcon) {
        this.appIcon = appIcon;
    }

    public String getVideoContent() {
        return videoContent;
    }

    public void setVideoContent(String videoContent) {
        this.videoContent = videoContent;
    }

    public String getVideoCurl() {
        return videoCurl;
    }

    public void setVideoCurl(String videoCurl) {
        this.videoCurl = videoCurl;
    }

    public String getVideoUrl() {
        return videoUrl;
    }

    public void setVideoUrl(String videoUrl) {
        this.videoUrl = videoUrl;
    }

    public String getPlotImg() {
        return plotImg;
    }

    public void setPlotImg(String plotImg) {
        this.plotImg = plotImg;
    }

    @Override
    public String getIUrl() {
        return getDownloadUrl();
    }

    @Override
    public String getIPath() {
        return DownloadUtils.FILE_START_NAME + getPackageName();
    }

    @Override
    public String getITitle() {
        return getArticleTitle();
    }

    @Override
    public String getIPackageName() {
        return getPackageName();
    }


    @Override
    public String getITag() {
        if (TextUtils.isEmpty(tag)) {
            tag = StringUtils.macthUrl(getDownloadUrl());
        }
        return tag;
    }

    @Override
    public String getIGameId() {
        return getArticleId();
    }

    @Override
    public String getIAppIcon() {
        return getAppIcon();
    }

    @Override
    public String getIGameSummary() {
        return getSlogan();
    }

    @Override
    public String getISize() {
        return getAppSize();
    }

}
